<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{ido4WebContentActivityBean.id}"/>
		<f:event type="preRenderView" listener="#{ido4WebContentActivityBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Ido 4Web Content Activity"/>

	<ui:define name="header">
		Ido 4Web Content Activity
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty ido4WebContentActivityBean.id}">
				Edit existing Ido 4Web Content Activity
			</c:when>
			<c:otherwise>
				Create a new Ido 4Web Content Activity
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="ido4WebContentActivityBeanIdo4WebContentActivityActtNo" value="Actt No:"/>
				<h:panelGroup>
					<h:inputText id="ido4WebContentActivityBeanIdo4WebContentActivityActtNo" required="true" value="#{ido4WebContentActivityBean.ido4WebContentActivity.acttNo}"/>
					<h:message for="ido4WebContentActivityBeanIdo4WebContentActivityActtNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="ido4WebContentActivityBeanIdo4WebContentActivityActtCustNo" value="Actt Cust No:"/>
				<h:panelGroup>
					<h:inputText id="ido4WebContentActivityBeanIdo4WebContentActivityActtCustNo" required="true" value="#{ido4WebContentActivityBean.ido4WebContentActivity.acttCustNo}"/>
					<h:message for="ido4WebContentActivityBeanIdo4WebContentActivityActtCustNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="ido4WebContentActivityBeanIdo4WebContentActivityActtName" value="Actt Name:"/>
				<h:panelGroup>
					<h:inputText id="ido4WebContentActivityBeanIdo4WebContentActivityActtName" maxLength="200" value="#{ido4WebContentActivityBean.ido4WebContentActivity.acttName}"/>
					<h:message for="ido4WebContentActivityBeanIdo4WebContentActivityActtName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4WebContentActivityBeanIdo4WebContentActivityActtDescr" value="Actt Descr:"/>
				<h:panelGroup>
					<h:inputText id="ido4WebContentActivityBeanIdo4WebContentActivityActtDescr" maxLength="500" value="#{ido4WebContentActivityBean.ido4WebContentActivity.acttDescr}"/>
					<h:message for="ido4WebContentActivityBeanIdo4WebContentActivityActtDescr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4WebContentActivityBeanIdo4WebContentActivityActtFileName" value="Actt File Name:"/>
				<h:panelGroup>
					<h:inputText id="ido4WebContentActivityBeanIdo4WebContentActivityActtFileName" maxLength="500" value="#{ido4WebContentActivityBean.ido4WebContentActivity.acttFileName}"/>
					<h:message for="ido4WebContentActivityBeanIdo4WebContentActivityActtFileName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="ido4WebContentActivityBeanIdo4WebContentActivityRowStatus" value="Row Status:"/>
				<h:panelGroup>
					<h:inputText id="ido4WebContentActivityBeanIdo4WebContentActivityRowStatus" value="#{ido4WebContentActivityBean.ido4WebContentActivity.rowStatus}"/>
					<h:message for="ido4WebContentActivityBeanIdo4WebContentActivityRowStatus" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{ido4WebContentActivityBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty ido4WebContentActivityBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{ido4WebContentActivityBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{ido4WebContentActivityBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>